package com.oneraku.service.utils;

import java.util.Arrays;

/**
 * @Author: hui.ren@huberbuy.com
 * @Date: 2020/4/12 17:47
 */
public enum KillStepEnum {
    step1(0,"申请"),
    step2(1,"接受委托"),
    step3(2,"付款"),
    step4(3,"拍卖中"),

    step5(4,"拍卖成功"),
    step6(5,"等待入库"),
    step7(6,"入库确认"),

    step8(7,"拍卖失败"),
    step9(8,"退款");

    private Integer step;
    private String name;

    KillStepEnum(Integer step, String name) {
        this.step = step;
        this.name = name;
    }

    public static boolean check(int step){
        return Arrays.stream(KillStepEnum.values()).filter(item->item.step.intValue() == step).count() > 0;
    }
}
